package com.ryh.service.impl;

import com.ryh.entity.Role;
import com.ryh.mapper.RoleMapper;
import com.ryh.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName RoleServiceImpl
 * @Description TODO
 * @Author RaoYH
 */
@Service
public class RoleServiceImpl implements RoleService {

    @Autowired
    private RoleMapper roleMapper;

    @Override
    public List<Role> findById(Integer rid) {
        return roleMapper.findById(rid);
    }
}
